<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- 
1、这个表单的id不能变，固定写成"pagerForm"。
2、input用来隐藏查询条件和分页的信息。当点1页、2页的时候时候，DWZ要将该form中的input数据发送到java端
 -->
<form id="pagerForm" method="post" action="inventory/goodsname.do">
	<input type="hidden" name="pageNum" value="${requestScope.count.pageNum}" />
	<input type="hidden" name="numPerPage" value="${requestScope.count.numPerPage}" />
</form>
<div class="pageHeader">	

</div>
 <!-- 用户所需要的商品名字界面 -->
<div class="pageContent" >
	<table class="table" width="100%" layoutH="138">
			<c:forEach items="${requestScope.all}" var="i" varStatus="status">
			<tr>
						<td><a href="javascript:void(0);"
						onclick="$.bringBack({goodsname:'${i.name}'})"
						>${i.name}</a></td>			
			</tr>
			</c:forEach>
	</table>
	<!-- 用来绘制分页的界面 -->
	<div class="panelBar">
		<div class="pages">
			<span>每页显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="5">5</option>
				<option value="10">10</option>
				<option value="20">20</option>
			</select>
			<span>条，共${requestScope.count.totalCount}条</span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${requestScope.count.totalCount}" numPerPage="${requestScope.count.numPerPage}" pageNumShown="5" currentPage="${requestScope.count.pageNum}"></div>
	</div>
</div>

